package com.zkthink.ceres.applet.server.controller;

import com.zkthink.base.R;
import com.zkthink.ceres.applet.common.domin.PageDate;
import com.zkthink.ceres.applet.server.service.PcServerCategoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

/**
 * @Author cmz
 * @Date 2024-04-28 14:00
 */
@Slf4j
@Validated
@RestController
@RequestMapping("/applet/pcServerCategory")
@Api(value = "pcServerCategory", tags = "服务分类")
public class PcServerCategoryController {
    @Autowired
    private PcServerCategoryService pcServerCategoryService;

    @ApiOperation(value = "分页查询所有服务分类", notes = "查询所有服务分类")
    @PostMapping(value = "/findAll")
    public R findAll(@RequestBody PageDate pageDate) {
        return pcServerCategoryService.findByPage(pageDate);
    }
}
